import request from '@/utils/request'

//初始化jssdk
export function initWXSDK(url) {
    return request({
        url: `/mp/api/share?target_url=${url}`,
        method: 'get'
    })
}

export function uploadCalendarImg(data) {
    return request({
        url: `/public/api/upload`,
        data,
        method: 'post'
    })
}

export function getCalendarImg(info) {
    return request({
        url: `/product/mall/v5/pan/pic?city=${info.city}&year=${info.year}`,
        method: 'get'
    })
}

export function getCalendarAPI(info) {
    return request({
        url: `/product/mall/v5/pan/calendar?city=${info.city}&year=${info.year}&month=${info.month}`,
        method: 'get'
    })
}